@import "./variables.module.scss";

@mixin colorBtn($color) {
  background: $color;

  &:hover {
    color: $color;

    &:before,
    &:after {
      background: $color;
    }
  }
}

.blue-btn {
  @include colorBtn($blue);
}

.light-blue-btn {
  @include colorBtn($light-blue);
}

.red-btn {
  @include colorBtn($red);
}

.pink-btn {
  @include colorBtn($pink);
}

.green-btn {
  @include colorBtn($green);
}

.tiffany-btn {
  @include colorBtn($tiffany);
}

.yellow-btn {
  @include colorBtn($yellow);
}

.pan-btn {
  font-size: 14px;
  color: #fff;
  padding: 14px 36px;
  border-radius: 8px;
  border: none;
  outline: none;
  transition: 600ms ease all;
  position: relative;
  display: inline-block;

  &:hover {
    background: #fff;

    &:before,
    &:after {
      width: 100%;
      transition: 600ms ease all;
    }
  }

  &:before,
  &:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    height: 2px;
    width: 0;
    transition: 400ms ease all;
  }

  &::after {
    right: inherit;
    top: inherit;
    left: 0;
    bottom: 0;
  }
}

// .custom-button {
//   display: inline-block;
//   line-height: 1;
//   white-space: nowrap;
//   cursor: pointer;
//   background: #fff;
//   color: #fff;
//   -webkit-appearance: none;
//   text-align: center;
//   box-sizing: border-box;
//   outline: 0;
//   margin: 0;
//   padding: 10px 15px;
//   font-size: 14px;
//   border-radius: 4px;
// }

.search-button {
  position: fixed;
  top: 110px;
  right: 50px;
  display: flex;
  .btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90px;
    height: 34px;
    padding: 10px;
    // margin-right: 20px;
    font-size: 14px;
    border-radius: 4px;
    user-select: none;
    cursor: pointer;
  }
  .btn.search {
    color: #fff;
    background: rgba(0, 124, 239, 1);
    &:hover {
      background: rgba(0, 124, 239, 0.85);
    }
  }
  .btn.add {
    border: none;
    color: #fff;
    background: rgba(255, 159, 0, 1);
    &:hover {
      background: rgba(255, 159, 0, 0.85);
    }
  }
  .btn.reset {
    color: rgba(43, 193, 123, 1);
    background: rgba(43, 193, 123, 0.05);
    border: 1px solid rgba(43, 193, 123, 1);
    &:hover {
      background: rgba(43, 193, 123, 0.2);
    }
  }
  .btn.save {
    color: #fff;
    background: rgba(67, 207, 124, 1);
    border: none;
    &:hover {
      background: rgba(67, 207, 124, 0.85);
    }
  }

  .btn.back {
    border: none;
    color: #fff;
    background: rgba(255, 159, 0, 1);
    &:hover {
      background: rgba(255, 159, 0, 0.85);
    }
  }
  .btn.direction {
    // color: #606266;
    // background-color: transparent;
    // &:hover {
    //   color: #3f99ec;
    //   border: 1px soild red;
    //   background: rgba(1, 95, 184, 0.2);
    // }
    border: none;
    color: #fff;
    background: rgba(153, 153, 153, 1);
    &:hover {
      background: rgba(153, 153, 153, 0.85);
    }
  }
  

  .btn.submit {
    color: #fff;
    background: rgba(0, 124, 239, 1);
    &:hover {
      background: rgba(47, 148, 243, 0.85);
    }
  }

  .btn.withdraw {
    border: none;
    color: #fff;
    background: rgba(245, 108, 108, 1);
    &:hover {
      background: rgba(245, 108, 108, 0.85);
    }
  }

  .btn.backNew {
    border: none;
    color: #fff;
    background: rgba(153, 153, 153, 1);
    &:hover {
      background: rgba(153, 153, 153, 0.85);
    }
  }

  .icon {
    margin-right: 6px;
  }
}

.nofixed-search-button {
  position: absolute;
  top: -45px;
  right: 50px;
  display: flex;
  .btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90px;
    height: 34px;
    padding: 10px;
    // margin-right: 20px;
    font-size: 14px;
    border-radius: 4px;
    user-select: none;
    cursor: pointer;
  }
  .btn.search {
    color: #fff;
    background: rgba(0, 124, 239, 1);
    &:hover {
      background: rgba(0, 124, 239, 0.85);
    }
  }
  .btn.add {
    border: none;
    color: #fff;
    background: rgba(255, 159, 0, 1);
    &:hover {
      background: rgba(255, 159, 0, 0.85);
    }
  }
  .btn.reset {
    color: rgba(43, 193, 123, 1);
    background: rgba(43, 193, 123, 0.05);
    border: 1px solid rgba(43, 193, 123, 1);
    &:hover {
      background: rgba(43, 193, 123, 0.2);
    }
  }
  .btn.save {
    color: #fff;
    background: rgba(67, 207, 124, 1);
    border: none;
    &:hover {
      background: rgba(67, 207, 124, 0.85);
    }
  }

  .btn.back {
    border: none;
    color: #fff;
    background: rgba(255, 159, 0, 1);
    &:hover {
      background: rgba(255, 159, 0, 0.85);
    }
  }
  .btn.direction {
    color: #606266;
    background-color: transparent;
    &:hover {
      color: #3f99ec;
      border: 1px soild red;
      background: rgba(1, 95, 184, 0.2);
    }
  }

  .btn.submit {
    color: #fff;
    background: rgba(0, 124, 239, 1);
    &:hover {
      background: rgba(47, 148, 243, 0.85);
    }
  }

  .btn.withdraw {
    border: none;
    color: #fff;
    background: rgba(245, 108, 108, 1);
    &:hover {
      background: rgba(245, 108, 108, 0.85);
    }
  }

  .icon {
    margin-right: 6px;
  }
}
